﻿namespace QueryBuilder.Core.Query
{
    /// <summary>
    /// 
    /// </summary>
    public abstract class Constraint
    {
        /// <summary>
        /// Gets or sets the parent.
        /// </summary>
        /// <value>The parent.</value>
        public Constraint Parent { get; set; }

        /// <summary>
        /// Accepts the specified constraint presenter.
        /// </summary>
        /// <param name="constraintPresenter">The constraint presenter.</param>
        public abstract void Accept(IConstraintPresenter constraintPresenter);
    }
}